.class Lcom/philzhu/www/ads/AdsManager$1;
.super Ljava/lang/Object;
.source "AdsManager.java"

# interfaces
.implements Lcom/uucun/adsdk/UpdatePointListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/philzhu/www/ads/AdsManager;->getPoints(Lcom/philzhu/www/framework/impl/AndroidGame;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field private final synthetic val$mGame:Lcom/philzhu/www/framework/impl/AndroidGame;


# direct methods
.method constructor <init>(Lcom/philzhu/www/framework/impl/AndroidGame;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/philzhu/www/ads/AdsManager$1;->val$mGame:Lcom/philzhu/www/framework/impl/AndroidGame;

    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(Ljava/lang/String;)V
    .locals 0
    .parameter "msg"

    .prologue
    .line 33
    return-void
.end method

.method public onSuccess(Ljava/lang/String;I)V
    .locals 4
    .parameter "unit"
    .parameter "total"

    .prologue
    .line 18
    if-lez p2, :cond_0

    .line 19
    iget-object v0, p0, Lcom/philzhu/www/ads/AdsManager$1;->val$mGame:Lcom/philzhu/www/framework/impl/AndroidGame;

    iget-object v1, p0, Lcom/philzhu/www/ads/AdsManager$1;->val$mGame:Lcom/philzhu/www/framework/impl/AndroidGame;

    const v2, 0x7f040042

    invoke-virtual {v1, v2}, Lcom/philzhu/www/framework/impl/AndroidGame;->getString(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "$"

    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/philzhu/www/framework/impl/AndroidGame;->shwoToast(Ljava/lang/String;)V

    .line 20
    invoke-static {p2}, Lcom/philzhu/www/ddz/Settings;->addScore(I)V

    .line 22
    :cond_0
    iget-object v0, p0, Lcom/philzhu/www/ads/AdsManager$1;->val$mGame:Lcom/philzhu/www/framework/impl/AndroidGame;

    invoke-static {v0}, Lcom/uucun/adsdk/UUAppConnect;->getInstance(Landroid/content/Context;)Lcom/uucun/adsdk/UUAppConnect;

    move-result-object v0

    .line 23
    new-instance v1, Lcom/philzhu/www/ads/AdsManager$1$1;

    invoke-direct {v1, p0}, Lcom/philzhu/www/ads/AdsManager$1$1;-><init>(Lcom/philzhu/www/ads/AdsManager$1;)V

    .line 22
    invoke-virtual {v0, p2, v1}, Lcom/uucun/adsdk/UUAppConnect;->spendPoints(ILcom/uucun/adsdk/UpdatePointListener;)V

    .line 29
    return-void
.end method
